package app.structure;

import java.util.ArrayList;
import java.util.List;

/**
 * Program definition in a menu
 * 
 * @author eduard
 * 
 */
public class MenuProc {
	private String id;
	/**
	 * ClassName
	 */
	private String clazz;
	/**
	 * Method from the class to execute or actionName in the controller
	 */
	private String method;
	/**
	 * (Y/N) or (S/N) display form for the arguments
	 */
	private String form;
	/**
	 * arguments for the method
	 */
	private List<Arg> args;

	public MenuProc() {
		setArgs(new ArrayList<Arg>());
	}

	public MenuProc(String clazz) {
		setArgs(new ArrayList<Arg>());
		this.setClazz(clazz);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getForm() {
		return form;
	}

	public void setForm(String form) {
		this.form = form;
	}

	public List<Arg> getArgs() {
		return args;
	}

	public void setArgs(List<Arg> args) {
		this.args = args;
	}

}
